package controller

import (
	"frame/controller/ControllerModule"
	"strconv"
	"frame/logger/HLogger"
)

var logger = HLogger.GetHLogger("Controller.init")

func init(){
	var result bool
	var err error
	result,err = ControllerModule.RegisterControllerModule(LoginControllerModule)
	if(result == false) {
		logger.Error("Controller注册失败["+err.Error()+"]")
		panic(err)
	}
	logger.Info("初始化成功"+strconv.Itoa(ControllerModule.GetControllerModulesCount())+"个controller")
}
